-- GENERATED SPELL FOR [Lady Vespira] --


function spell0_7016(pUnit, Event) --@Forked Lightning,n/a--
pUnit:FullCastSpellOnTarget(12549,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7016', 2000, 1)
end

function spell1_7016(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7016', 2313, 1)
end

function spell2_7016(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7016', 613, 1)
end

function Sorts_7016(pUnit, Event)
local choix_sorts_7016 = math.random(0, 2)
if choix_sorts_7016 == 0 then
pUnit:RegisterEvent('spell0_7016', 1, 1)
end
if choix_sorts_7016 == 1 then
pUnit:RegisterEvent('spell1_7016', 1, 1)
end
if choix_sorts_7016 == 2 then
pUnit:RegisterEvent('spell2_7016', 1, 1)
end
end

function mob7016_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7016', math.random(1500, 3000), 1)
end

function mob7016_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7016_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7016_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7016, 1, 'mob7016_Action')
RegisterUnitEvent(7016, 2, 'mob7016_Leave')
RegisterUnitEvent(7016, 3, 'mob7016_Kill')
RegisterUnitEvent(7016, 4, 'mob7016_Die')
